package com.dys.ai.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 预定详情
 */
public class BookingDetailsDTO {
    /**
     * 订单编号
     */
    private Long orderId;

    /**
     * 乘客姓名
     */
    private String realName;

    /**
     * 车次编号
     */
    private String trainNumber;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime orderTime;

    /**
     * 出发时间
     */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime departureTime;

    /**
     * 出发站
     */
    private String departureStation;
    /**
     * 到达站
     */
    private String arrivalStation;

    /**
     * 座位类型
     */
    private String seatType;

    /**
     * 订单状态
     */
    private String orderStatus;

    public BookingDetailsDTO() {
    }

    public BookingDetailsDTO(Long orderId, String realName, String trainNumber, LocalDateTime orderTime, LocalTime departureTime, String departureStation, String arrivalStation, String seatType, String orderStatus) {
        this.orderId = orderId;
        this.realName = realName;
        this.trainNumber = trainNumber;
        this.orderTime = orderTime;
        this.departureTime = departureTime;
        this.departureStation = departureStation;
        this.arrivalStation = arrivalStation;
        this.seatType = seatType;
        this.orderStatus = orderStatus;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }

    public LocalDateTime getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(LocalDateTime orderTime) {
        this.orderTime = orderTime;
    }

    public LocalTime getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(LocalTime departureTime) {
        this.departureTime = departureTime;
    }

    public String getDepartureStation() {
        return departureStation;
    }

    public void setDepartureStation(String departureStation) {
        this.departureStation = departureStation;
    }

    public String getArrivalStation() {
        return arrivalStation;
    }

    public void setArrivalStation(String arrivalStation) {
        this.arrivalStation = arrivalStation;
    }

    public String getSeatType() {
        return seatType;
    }

    public void setSeatType(String seatType) {
        this.seatType = seatType;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }
}
